import java.util.Scanner;

public class test3 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入一个大于等于2的整数");
        int x = sc.nextInt();
        for (int i=1;i<=x;i++) {
            if (i*i==x){
                System.out.println("该数的平方根是"+i);
                break;
            }else if (i*i>x){
                System.out.println("该数的平方根是"+(i-1));
                break;
            }
        }

    }
}
